package com.fita.admin.dao;

import com.demo2do.core.persistence.annotation.Dao;
import com.demo2do.core.persistence.annotation.Query;
import com.demo2do.core.persistence.annotation.Variable;
import com.fita.entity.wallet.UserWallet;

/**
 * @description:
 * @author: 11200
 * @date: 2019/7/16
 */

@Dao("hibernate")
public interface UserWalletDao {

    /**
     *
     * @param agentCompanyId
     * @return
     */
    @Query("FROM UserWallet WHERE agentCompany.id = :agentCompanyId")
    UserWallet loadByAgentCompanyId(@Variable("agentCompanyId") Long agentCompanyId);

}
